package com.landiao.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.landiao.common.pojo.Querier;
import com.landiao.entities.OrderSchedule;

public interface OrderScheduleMapper extends BaseMapper<OrderSchedule,String>{
    int deleteByPrimaryKey(String orderScheduleId);

    int insert(OrderSchedule record);

    int insertSelective(OrderSchedule record);

    OrderSchedule selectByPrimaryKey(String orderScheduleId);

    int updateByPrimaryKeySelective(OrderSchedule record);

    int updateByPrimaryKey(OrderSchedule record);
    
    /**
     * 获取历史业绩
     * @param querier
     * @return
     */
    List<OrderSchedule> selectOrderScheduleNoMdse(Querier querier);
    
    int batchDelete(List<String> detailIds);
    
    int batchInsert(List<OrderSchedule> list);
    
    List<OrderSchedule> selectPerformanceRank(Querier querier);
    
    List<OrderSchedule> selectPerformanceDetail(Querier querier);
    
    int updateStatedateByOrderInfoId(String orderInfoId);
    
    int updateByPrimaryKeySelectiveWithEmployee(OrderSchedule record);
    
    List<OrderSchedule> selectUnServiceByEmployeeId(@Param("employeeId")String employeeId,@Param("statedate")Date statedate);
}